package edu.yuhf.tts.service;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

import edu.yuhf.tts.dao.QueryDao;
import edu.yuhf.tts.domain.Train;

public class QueryService {
			private QueryDao queryTrainX=new QueryDao();
			public List<Train> queryTrain(Train train){
				
				return queryTrainX.queryTrain(train);
			}
			public Train querybuy(String trainId,LocalDate date){
				
				return queryTrainX.queryByTrainId(trainId,date);
			}
}
